<% layout('layout') %><!--加载全局布局文件-->
<div ng-controller="CollectCtrl" ng-cloak class="ng-cloak">

    <ul class="am-list">
        <li class="am-margin-top-sm scor-border-none" ng-if="collects.length <= 0">
            <div class="am-text-center">
                <img class="scor-width-30p" src="/images/u/listnull.png"/>
                <h2 class="scor-color-888">您还没有收藏过商品</h2>
                <a class="am-btn scor-color-FFF scor-border-radius-10 scor-bg-gr am-padding-none" href="/">去首页逛逛</a>
            </div>
        </li>
        <li ng-repeat="collect in collects"    class=" am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-left app-relative">
            <a ng-href="/detail/{{collect.objectId}}" class="am-block" >
                <div class="am-u-sm-5">
                    <img  ng-src="{{collect.fileurl}}" width="100%" height="100%" class="am-radius"/>
                </div>
                <div class="am-u-sm-7 am-list-main ">
                    <h3 class="am-list-item-hd" ng-bind="collect.name"></h3>
                    <div class="am-list-item-text line-clamp" ng-bind="collect.intro"></div>
                    <div class="am-text-default am-text-danger">￥<span ng-bind="collect.minPrice"></span></div>
                    <div class="am-text-xs app-color-gray"><span ng-bind="collect.commentCount"></span>人已评</div>
                </div>
            </a>
            <button class="scor-remove-collect" ng-click='removeCollect($index,collect.objectId)'></button>
        </li>
    </ul>
    <div class="am-modal am-modal-loading am-modal-no-btn"  tabindex="-1" id="icon-alert">
        <div class="am-modal-dialog scor-bg-opacity">
            <div class="am-modal-hd scor-color-FFF"><i class="am-icon-spinner am-icon-spin scor-font-size-40"></i></div>
        </div>
    </div>

</div>
<% include ../navbar.ejs %>
<% block('footer').append('<script src="'+CDN+'script/collect.js"></script>') %>